package cn.lingyangwl.agile.pay.config;

import cn.lingyangwl.framework.sign.SignType;
import cn.lingyangwl.agile.model.constants.CommonCons;
import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;

/**
 * @author shenguangyang
 */
@Data
@ConfigurationProperties(prefix = CommonCons.PROPERTIES_PREFIX + "pay-client")
public class PayClientProperties {
    public static final String GATEWAY_BASE_URL = "pay-service";
    /**
     * 如果是微服务可以填写服务名称, 否则填写服务网关地址, eg: https://127.0.0.1:9090/pay-service
     */
    private String baseUrl;

    /**
     * 支付结果通知的url
     */
    private String payNotifyUrl;

    /**
     * 退款结果通知url
     */
    private String refundNotifyUrl;

    /**
     * 版本号
     */
    private String version = "1.0";

    /**
     * 商户应用id
     */
    private String mchAppId;

    /**
     * 商户号
     */
    private String mchNo;

    /**
     * 访问密钥id
     */
    private String secretId;

    /**
     * 访问密钥, 请妥善保管
     */
    private String secretKey;

    /**
     * 签名类型
     */
    private SignType signType = SignType.MD5;
}
